package com.example.user1.domain;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.user1.infra.mapper.entity.UserEntity;
import com.example.user1.infra.model.UserModel;

import java.util.List;

public interface UserRepository extends IService<UserEntity> {

    int add(UserModel model);

    UserModel get(Long id);

    UserModel getByUsername(String username);
    boolean existByUsername(String username);
    boolean existByUsernameLock(String username);
    boolean existByPhone(String phone);
    boolean existByPhoneLock(String phone);


}
